<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{professionRatingList.firstResult}"></f:viewParam>	
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<p:panel id="searchResult">
				<f:facet name="header">行业部门考评</f:facet>
				<p:dataTable value="#{professionRatingList.resultList}" var="_record">
										
					<p:column>
						<f:facet name="header">中介名称</f:facet>
						<h:outputText value="#{_record.supplier.cnname}" />						
					</p:column>
					
					<p:column>
						<f:facet name="header">得分</f:facet>
						#{_record.score}
					</p:column>
					<p:column>
						<f:facet name="header">评价时间</f:facet>
						<h:outputText value="#{_record.createDate}"  >
							<f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
						</h:outputText>
						#{_record.score}
					</p:column>
					<p:column>
						<f:facet name="header">评价人</f:facet>
						#{_record.ratingUser.cnname}
					</p:column>
					<p:column>
						<f:facet name="header">操作</f:facet>
						<p:button outcome="ProfessionRatingRecordView.xhtml" value="查看">
							<f:param name="professionRatingRecordId" value="#{_record.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{professionRatingList}" />
			</ui:include>
		</h:form>
      
   	</ui:define>
</ui:composition>
